package com.zHan.system.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zHan.model.dto.AssginMenuDto;
import com.zHan.model.system.SysMenu;
import com.zHan.model.vo.RouterVo;

import java.util.List;

/**
 * <p>
 * 菜单表 服务类
 * </p>
 *
 * @author zHan
 * @since 2023-06-23
 */
public interface ISysMenuService extends IService<SysMenu> {

    List<SysMenu> selectNodes();

    boolean removeMenuById(Long id);

    boolean batchRemoveMenu(List<Long> ids);

    List<SysMenu> findSysMenuByRoleId(String roleId);

    boolean assignMenuToRole(AssginMenuDto assginMenuDto);

    List<RouterVo> getUserMenuList(String id);

    List<String> getUserButtonList(String id);

    boolean updateStatus(Long id, Integer status);
}
